package com.shijun.bean;

/**
 * Created by zhushijun on 2017/12/31.
 */

public class ImageModle extends BaseModle {
    private int weight;
    private String imageUrl;

    public ImageModle(int weight,String imageUrl,int width, int height, int marginLeft, int marginTop, int marginRight, int marginBottom){
        this.weight = weight;
        this.imageUrl = imageUrl;
        setWidthAndHeight(width, height);
        setMargin(marginLeft, marginTop, marginRight, marginBottom);
    }

    public void setWeight(int weight) {
        this.weight = weight;
    }

    public int getWeight() {
        return weight;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public ImageModle clone(){
        return new ImageModle(getWeight(),getImageUrl(),getWidth(),getHeight(),getMarginLeft(),getMarginTop(),getMarginRight(),getMarginBottom());
    }

    @Override
    public String toString() {
        return "ImageModle{" +
                "width=" + width +
                ", weight=" + weight +
                ", height=" + height +
                ", imageUrl='" + imageUrl + '\'' +
                ", marginTop=" + marginTop +
                ", marginBottom=" + marginBottom +
                ", marginLeft=" + marginLeft +
                ", marginRight=" + marginRight +
                '}';
    }
}